/* ********************************************************************************************
*  Alvin Baldemeca
*  Tetris Project
*  Course: TCSS 305 , Alan Fowler
*  Term: Spring 2012
*  UNIVERISTY OF WASHINGTON TACOMA
*
*
**********************************************************************************************/

package gui.actions;



import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;





/**
 * This action closes the program that is running.
 *@author Alvin Baldemeca
 * @version 5/17/2012
 */
@SuppressWarnings("serial")
public class QuitAction extends AbstractAction
{
  
  /**
   * Creates a Quit action to close the program.
   */
  public QuitAction() 
  {
    super("Quit");
    putValue(Action.MNEMONIC_KEY, KeyEvent.VK_Q);
    putValue(Action.SELECTED_KEY, true);
  }

  @Override
  public void actionPerformed(final ActionEvent the_event) 
  {
    System.exit(0);
  }
  
  
}
  
